#include "t_youtube.h"
#include "t_core.h"

T_Youtube::T_Youtube(QNetworkAccessManager *a_nam)
{
    if(a_nam)
    {
        m_nam = a_nam;
        m_own_nam = false;
    }
    else
    {
        m_nam = new QNetworkAccessManager();
        m_own_nam = true;
    }
}

T_Youtube::~T_Youtube()
{
    if(m_own_nam)
    {
        delete m_nam;
    }
}
